package com.sduept.nwld.dataserver.manager.transclac;

public class Complex {

	private double value1; //实部 指值 电压 电流
	private double value2;//虚部 指相角
	public Complex(double fuzhi,double xiangjiao){
		this.value1 = fuzhi*Math.cos(xiangjiao);
		this.value2= fuzhi*Math.sin(xiangjiao);
	}
	public Complex(){
	}
	public double getValue1() {
		return value1;
	}
	public void setValue1(double value1) {
		this.value1 = value1;
	}
	public double getValue2() {
		return value2;
	}
	public void setValue2(double value2) {
		this.value2 = value2;
	}
	
}
